<?php
namespace app\admin\loglic;

class Upload
{
    public function fields()
    {
        return [
            'upload_path'       => [
                'type'  => 'text',
                'value' => config('common.upload_path'),
                'required'=> true,
            ],
            'upload_save_rule'  => [
                'type'  => 'text',
                'value' => config('common.upload_save_rule'),
            ],
            'upload_max_size'  => [
                'type'  => 'text',
                'value' => config('common.upload_max_size'),
            ],
            'upload_file_ext'  => [
                'type'  => 'text',
                'value' => config('common.upload_file_ext'),
            ],
            'upload_mime_type' => [
                'type'  => 'text',
                'value' => config('common.upload_mime_type'),
            ],
            'upload_referer'   => [
                'type'  => 'text',
                'value' => config('common.upload_referer'),
            ],
            'upload_host'      => [
                'type'  => 'text',
                'value' => config('common.upload_host'),
            ],
            'upload_cdn'       => [
                'type'  => 'text',
                'value' => config('common.upload_cdn'),
            ],
        ];
    }
}